﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using Utility.Enums;

namespace WPay.Domain.Model.DTOs.Lamada
{
    public class PayRecordHelpResData
    {

        /// <summary>
        /// 
        /// </summary>
        public virtual string idkey { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("企业名称")]
        public string cpnid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("ERP代码")]
        public virtual string erpcpnid { get; set; }
        /// <summary>
        /// 机构代码
        /// </summary>
        [DisplayName("机构代码")]
        public string orgid { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        [DisplayName("机构名称")]
        public string orgname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string h { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银员")]
        public string recman { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银设备")]
        public string recdevice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("商户订单号")]
        public string payid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("三方订单号")]
        public string transid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("支付方式")]
        public string paytyp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("支付通道")]
        public string paychannel { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public virtual Enum_PayStatuss stt { get; set; }
        [DisplayName("订单状态")]
        public string sttstr { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        [DisplayName("支付类型")]
        public Enum_PayTyp typ { get; set; }
        public string typstr { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>

        public virtual string auth_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收款账户")]
        public string pid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("买方账户")]
        public string uid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单金额")]
        public string price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string disc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string deramt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("实付金额")]
        public virtual string amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string cpnamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string othamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string wuamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款单号")]
        public string rfundid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款金额")]
        public string rfundamt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("撤销单号")]
        public string rvokid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("撤销金额")]
        public string cancelmoney { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单时间")]
        public string reqdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string? dt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单完成时间")]
        public string resdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("响应时长")]
        public string restimes { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string islkdrw { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string bllno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string rdx { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("错误信息")]
        public string msg { get; set; }
        /// <summary>
        /// 支付业务完成耗时:1692
        /// </summary>
        public virtual string paydt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string actcfg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string godsinfo { get; set; }
        /// <summary>
        /// goods_name:青岛啤酒[1]
        /// </summary>
        public virtual string authtyp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string area { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string authcode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string localport { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string isuup { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string ip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mac { get; set; }

        public virtual string ret_msg { get; set; }

        public virtual bool isok { get; set; }
    }

    public class PayRecordHelpResDTO
    {
        public PayRecordHelpResDTO()
        {
            data = new List<PayRecordHelpResData>();
        }
        /// <summary>
        /// 
        /// </summary>
        public int statusCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<PayRecordHelpResData> data { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Number { get; set; }
    }


    public class PayRecordHelpResDataES
    {

        public PayRecordHelpResDataES()
        {

        }
        /// <summary>
        /// 企业名称
        /// </summary>
        
        [Nest.Keyword]
        public virtual string cpnid { get; set; }
       
        [DisplayName("企业名称")]
        public string cpnidstr { get; set; }
        /// <summary>
        /// ERP代码
        /// </summary>
        [DisplayName("ERP代码")]
        public virtual string erpcpnid { get; set; }
        /// <summary>
        /// 机构代码
        /// </summary>
        [DisplayName("机构代码")]
        [Nest.Keyword]
        public  string orgid { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        [DisplayName("机构名称")]
        public  string orgname { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银员")]
        [Nest.Keyword]
        public string recman { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银设备")]
        public string recdevice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("商户订单号")]
        [Nest.Keyword]
        public string payid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("三方订单号")]
        [Nest.Keyword]
        public string transid { get; set; }
        /// <summary>
        /// 
        /// </summary>
       
        [Nest.Keyword]
        public virtual Enum_AuthType? paytyp { get; set; }

        [DisplayName("支付方式")]
        public string paytypstr { get; set; }
        /// <summary>
        /// 
        /// </summary>
        
        [Nest.Keyword]
        public virtual Enum_ChannelType? paychannel { get; set; }

        [DisplayName("支付通道")]
        public string paychannelstr { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        [Nest.Keyword]
        public virtual Enum_PayStatuss? stt { get; set; }
        [DisplayName("订单状态")]
        public string sttstr { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        [DisplayName("支付类型")]
        public virtual Enum_PayTyp? typ { get; set; }
        
        [DisplayName("业务类型")]
        public string typstr { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>

        public virtual string auth_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收款账户")]
        [Nest.Keyword]
        public string pid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("买方账户")]
        public string uid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单金额")]
        public string price { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("实付金额")]
        public virtual string amt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款单号")]
        public string rfundid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款金额")]
        public string rfundamt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单请求时间")]
        public  string reqdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string? dt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单完成时间")]
        public string resdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("响应时长")]
        public string restimes { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string islkdrw { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string bllno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string rdx { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("备注")]
        public string msg { get; set; }
        /// <summary>
        /// 支付业务完成耗时:1692
        /// </summary>
        public virtual string paydt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string actcfg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string godsinfo { get; set; }
        /// <summary>
        /// goods_name:青岛啤酒[1]
        /// </summary>
        public virtual string authtyp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string area { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string authcode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string localport { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string isuup { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string ip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mac { get; set; }

        public virtual string ret_msg { get; set; }

        public virtual bool isok { get; set; }

        public virtual DateTime crTtime { get; set; }
        /// <summary>
        /// 订单上报时间
        /// </summary>
        [DisplayName("订单上报时间")]
        public  string crTtimeStr { get; set; }






    }
    public class PayRecordHelpResDataES_Good
    {

        public PayRecordHelpResDataES_Good()
        {

        }
        /// <summary>
        /// 企业名称
        /// </summary>
        [DisplayName("企业名称")]
        [Nest.Keyword]
        public virtual string cpnid { get; set; }
        public string cpnidstr { get; set; }
        /// <summary>
        /// ERP代码
        /// </summary>
        [DisplayName("ERP代码")]
        public virtual string erpcpnid { get; set; }
        /// <summary>
        /// 机构代码
        /// </summary>
        [DisplayName("机构代码")]
        [Nest.Keyword]
        public virtual string orgid { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        [DisplayName("机构名称")]
        public virtual string orgname { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银员")]
        [Nest.Keyword]
        public string recman { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收银设备")]
        public string recdevice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("商户订单号")]
        [Nest.Keyword]
        public string payid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("三方订单号")]
        [Nest.Keyword]
        public string transid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("支付方式")]
        [Nest.Keyword]
        public virtual Enum_AuthType? paytyp { get; set; }

        public string paytypstr { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("支付通道")]
        [Nest.Keyword]
        public virtual Enum_ChannelType? paychannel { get; set; }
        public string paychannelstr { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        [Nest.Keyword]
        public virtual Enum_PayStatuss? stt { get; set; }
        [DisplayName("订单状态")]
        public string sttstr { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        [DisplayName("支付类型")]
        public virtual Enum_PayTyp? typ { get; set; }
        public string typstr { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>

        public virtual string auth_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("收款账户")]
        [Nest.Keyword]
        public string pid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("买方账户")]
        public string uid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单金额")]
        public string price { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("实付金额")]
        public virtual string amt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款单号")]
        public string rfundid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("退款金额")]
        public string rfundamt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单时间")]
        public string reqdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string? dt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("订单完成时间")]
        public string resdt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("响应时长")]
        public string restimes { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string islkdrw { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string bllno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string rdx { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DisplayName("备注")]
        public string msg { get; set; }
        /// <summary>
        /// 支付业务完成耗时:1692
        /// </summary>
        public virtual string paydt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string actcfg { get; set; }
        /// <summary>
        /// 
        /// </summary>
       // public virtual string godsinfo { get; set; }
        /// <summary>
        /// goods_name:青岛啤酒[1]
        /// </summary>
        public virtual string authtyp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string area { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string authcode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string localport { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string isuup { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string ip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mac { get; set; }

        public virtual string ret_msg { get; set; }

        public virtual bool isok { get; set; }

        public DateTime crTtime { get; set; }






    }

}
